using System;
using System.Collections.Generic;
using System.Text;
using DTO.PO;

namespace DAO.PO
{
    public class TransDAO
    {
        // Nhap hang vao kho PO_Trans (man` hinh` 2)
        public void InsertTrans(Trans trans)
        {
            DataProvider provider = new DataProvider();
            provider.Open();
            string command = "insert into PO_Trans(ReceiptNumber, InventID, Unit, Qty, SiteID) values ("
                + trans.ReceiptNumber + "," + trans.InvenId + "," + trans.Unit + "," + trans.Qty + "," + trans.SiteId + ")";

            provider.ExcuteNonQuery(command);
            provider.Close();
        }
    }
}
